.class Lcom/example/m6wmr/AddrActivity$2;
.super Ljava/lang/Object;
.source "AddrActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/AddrActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/AddrActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/AddrActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    .line 57
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/4 v5, 0x0

    .line 60
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    iget-object v3, v3, Lcom/example/m6wmr/AddrActivity;->flag:Ljava/lang/String;

    const-string v4, "qu"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 61
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    const-string v4, "addrInfo"

    invoke-virtual {v3, v4, v5}, Lcom/example/m6wmr/AddrActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    .line 62
    .local v2, "userInfo":Landroid/content/SharedPreferences;
    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    const-string v4, "qustr"

    iget-object v5, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    # getter for: Lcom/example/m6wmr/AddrActivity;->street:Landroid/widget/EditText;
    invoke-static {v5}, Lcom/example/m6wmr/AddrActivity;->access$0(Lcom/example/m6wmr/AddrActivity;)Landroid/widget/EditText;

    move-result-object v5

    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v5

    invoke-interface {v5}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 63
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 64
    .local v1, "msg":Landroid/os/Message;
    const/16 v3, 0x9

    iput v3, v1, Landroid/os/Message;->arg1:I

    .line 65
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    iget-object v3, v3, Lcom/example/m6wmr/AddrActivity;->flag2:Ljava/lang/String;

    const-string v4, "send"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 66
    sget-object v3, Lcom/example/m6wmr/SendActivity;->h:Landroid/os/Handler;

    invoke-virtual {v3, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 81
    :goto_0
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    iget-object v3, v3, Lcom/example/m6wmr/AddrActivity;->flag2:Ljava/lang/String;

    const-string v4, "send"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 83
    new-instance v0, Landroid/content/Intent;

    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    const-class v4, Lcom/example/m6wmr/SendActivity;

    invoke-direct {v0, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 84
    .local v0, "intent":Landroid/content/Intent;
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    invoke-virtual {v3, v0}, Lcom/example/m6wmr/AddrActivity;->startActivity(Landroid/content/Intent;)V

    .line 85
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    invoke-virtual {v3}, Lcom/example/m6wmr/AddrActivity;->finish()V

    .line 93
    :goto_1
    return-void

    .line 68
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_0
    sget-object v3, Lcom/example/m6wmr/BuyActivity;->h:Landroid/os/Handler;

    invoke-virtual {v3, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 71
    .end local v1    # "msg":Landroid/os/Message;
    .end local v2    # "userInfo":Landroid/content/SharedPreferences;
    :cond_1
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    const-string v4, "addrInfo"

    invoke-virtual {v3, v4, v5}, Lcom/example/m6wmr/AddrActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    .line 72
    .restart local v2    # "userInfo":Landroid/content/SharedPreferences;
    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    const-string v4, "shoustr"

    iget-object v5, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    # getter for: Lcom/example/m6wmr/AddrActivity;->street:Landroid/widget/EditText;
    invoke-static {v5}, Lcom/example/m6wmr/AddrActivity;->access$0(Lcom/example/m6wmr/AddrActivity;)Landroid/widget/EditText;

    move-result-object v5

    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v5

    invoke-interface {v5}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 73
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 74
    .restart local v1    # "msg":Landroid/os/Message;
    const/16 v3, 0xa

    iput v3, v1, Landroid/os/Message;->arg1:I

    .line 75
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    iget-object v3, v3, Lcom/example/m6wmr/AddrActivity;->flag2:Ljava/lang/String;

    const-string v4, "send"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 76
    sget-object v3, Lcom/example/m6wmr/SendActivity;->h:Landroid/os/Handler;

    invoke-virtual {v3, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 78
    :cond_2
    sget-object v3, Lcom/example/m6wmr/BuyActivity;->h:Landroid/os/Handler;

    invoke-virtual {v3, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 88
    :cond_3
    new-instance v0, Landroid/content/Intent;

    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    const-class v4, Lcom/example/m6wmr/BuyActivity;

    invoke-direct {v0, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 89
    .restart local v0    # "intent":Landroid/content/Intent;
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    invoke-virtual {v3, v0}, Lcom/example/m6wmr/AddrActivity;->startActivity(Landroid/content/Intent;)V

    .line 90
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity$2;->this$0:Lcom/example/m6wmr/AddrActivity;

    invoke-virtual {v3}, Lcom/example/m6wmr/AddrActivity;->finish()V

    goto :goto_1
.end method
